from queue_sqlite.mounter import task
from queue_sqlite.model import MessageItem


@task(meta={"task_name": "add_student"})
def add_student(message_item: MessageItem):
    # create a new instance of the AddStudentDilalog dialog
    # time.sleep(3)
    print("点击了添加按钮")
    return {"message": "学生添加成功"}


@task(meta={"task_name": "test"})
def test(message_item: MessageItem):
    # print(f"测试任务: {message_item}")
    return {"message": "测试成功"}
